<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增NucleicAcidLog')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-NucleicAcidLog-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">学生姓名：</label>
            <div class="col-sm-8">
                <select name="studentId" th:with="student=${sdudents}" class="form-control m-b">
                    <option value="">所有</option>
                    <option th:each="student : ${student}" th:text="${student.name}" th:value="${student.id}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">采样时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input name="samplingTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">采样结果：</label>
            <div class="col-sm-8">
                <select name="samplingResult" class="form-control m-b" th:with="type=${@dict.getType('sampling_result')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">采样人员：</label>
            <div class="col-sm-8">
                <input name="medicalStaffId" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否单采：</label>
            <div class="col-sm-8">
                <select name="singleMining" class="form-control m-b" th:with="type=${@dict.getType('single_mining')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">采样地点：</label>
            <div class="col-sm-8">
                <input name="samplingLocation" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "system/NucleicAcidLog"
    $("#form-NucleicAcidLog-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-NucleicAcidLog-add').serialize());
        }
    }

    $("input[name='samplingTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>